let vm =new Vue({
    el:"#app",
    data:{
        
        arr:['三文鱼','麻辣米线','苹果'],
        arr1:''
    },
    methods:{
        search(){
           this.arr.push(this.arr1);
           this.arr1=''

        },

        del() {
            this.arr = [];
        }
    }

   
    
  
})